const express = require('express');
const app = express();

const LoginRouter = require('./router3/LoginRouter')
const HomeRouter = require('./router3/HomeRouter')
const AboutRouter = require('./router3/AboutRouter')
app.use((req, res, next) => {
    console.log("验证token");
    next();
})
app.use("/login",LoginRouter)
app.use("/home",HomeRouter)
app.use("/about",AboutRouter)

app.listen(3000, () => {
    console.log('Server is running on http://localhost:3000');
})